<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/23
  Time: 17:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        /* 整体表单样式 */
        form {
            width: 300px;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;
        }

        /* 每个表单元素的样式 */
        form input {
            width: 100%;
            margin-bottom: 10px;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }

        /* 提交按钮样式 */
        input[type="submit"] {
            background-color: #007BFF;
            color: white;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<form action="StudentServlet" method="post">
    <input type="hidden" name="sId" value="${stu.sId}"><br>
    <input type="text" name="sName" value="${stu.sName}"><br>
    <input type="date" name="birth" value="${stu.birth}"><br>
    <input type="text" name="gender" value="${stu.gender}"><br>
    <select name="cId">
        <option value="${stu.cla.cId}">${stu.cla.cName}</option>
        <c:forEach items="${claList}" var="cla">
            <option value="${cla.cId}">${cla.cName}</option>
        </c:forEach>
    </select>
    <input type="submit" value="修改">
</form>
</body>
</html>